package org.vacuela.attendance;

import com.u2d.model.AbstractComplexEObject;
import com.u2d.model.Title;
import com.u2d.type.AbstractChoiceEO;
import com.u2d.type.atom.StringEO;
import javax.persistence.Entity;

@Entity
public class Division extends AbstractComplexEObject
{
   private final StringEO _name = new StringEO();
   
   public static String[] identities = {"name"};
   
   private Company company;
   public Company getCompany() {
	return company;
}


public void setCompany(Company company) {
	 
	Company oldCompany = this.company;
	this.company = company;
	      firePropertyChange("company", oldCompany, this.company);
}


public static final String companyInverseFieldName = "divisions";
   
   public Division() {}
  
   
   public StringEO getName() { return _name; }

  
   public Title title() { return _name.title(); }
   
}
